local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1, L14_1, L15_1, L16_1, L17_1, L18_1, L19_1, L20_1, L21_1, L22_1, L23_1, L24_1, L25_1, L26_1, L27_1, L28_1
L0_1 = {}
L0_1.group_id = 250004005
L1_1 = {}
L1_1.gadget_id_1 = 41
L1_1.gadget_id_2 = 40
L1_1.gadget_id_3 = 1
L1_1.gadget_id_4 = 0
L1_1.gadget_id_5 = 176
L1_1.gadget_id_6 = 175
L2_1 = {}
monsters = L2_1
L2_1 = {}
npcs = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 35
L3_1.gadget_id = 70900207
L4_1 = {}
L4_1.x = 443.125
L4_1.y = -11.057
L4_1.z = -140.012
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 0.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L4_1 = {}
L4_1.config_id = 40
L4_1.gadget_id = 70900206
L5_1 = {}
L5_1.x = 463.358
L5_1.y = -11.093
L5_1.z = -127.064
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 180.0
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 1
L5_1 = {}
L5_1.config_id = 41
L5_1.gadget_id = 70900224
L6_1 = {}
L6_1.x = 463.393
L6_1.y = -8.335
L6_1.z = -127.074
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 359.072
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 1
L6_1 = {}
L6_1.config_id = 81
L6_1.gadget_id = 70220005
L7_1 = {}
L7_1.x = 449.083
L7_1.y = -11.0
L7_1.z = -123.341
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 0.0
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 1
L7_1 = {}
L7_1.config_id = 175
L7_1.gadget_id = 70900206
L8_1 = {}
L8_1.x = 463.763
L8_1.y = -11.118
L8_1.z = -135.161
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 180.0
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 1
L8_1 = {}
L8_1.config_id = 176
L8_1.gadget_id = 70900224
L9_1 = {}
L9_1.x = 463.799
L9_1.y = -8.36
L9_1.z = -135.171
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 359.072
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 1
L9_1 = {}
L9_1.config_id = 177
L9_1.gadget_id = 70900208
L10_1 = {}
L10_1.x = 457.394
L10_1.y = -11.192
L10_1.z = -122.007
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 0.0
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 1
L10_1 = {}
L10_1.config_id = 178
L10_1.gadget_id = 70900208
L11_1 = {}
L11_1.x = 459.966
L11_1.y = -11.126
L11_1.z = -122.008
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 0.0
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 1
L11_1 = {}
L11_1.config_id = 179
L11_1.gadget_id = 70900208
L12_1 = {}
L12_1.x = 462.372
L12_1.y = -11.204
L12_1.z = -121.957
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 0.0
L12_1.y = 0.0
L12_1.z = 0.0
L11_1.rot = L12_1
L11_1.level = 1
L12_1 = {}
L12_1.config_id = 180
L12_1.gadget_id = 70900208
L13_1 = {}
L13_1.x = 463.747
L13_1.y = -11.147
L13_1.z = -124.093
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 0.0
L13_1.y = 0.0
L13_1.z = 0.0
L12_1.rot = L13_1
L12_1.level = 1
L13_1 = {}
L13_1.config_id = 181
L13_1.gadget_id = 70900207
L14_1 = {}
L14_1.x = 443.483
L14_1.y = -10.981
L14_1.z = -122.186
L13_1.pos = L14_1
L14_1 = {}
L14_1.x = 0.0
L14_1.y = 0.0
L14_1.z = 0.0
L13_1.rot = L14_1
L13_1.level = 1
L14_1 = {}
L14_1.config_id = 182
L14_1.gadget_id = 70900208
L15_1 = {}
L15_1.x = 449.543
L15_1.y = -11.092
L15_1.z = -122.0
L14_1.pos = L15_1
L15_1 = {}
L15_1.x = 0.0
L15_1.y = 0.0
L15_1.z = 0.0
L14_1.rot = L15_1
L14_1.level = 1
L15_1 = {}
L15_1.config_id = 183
L15_1.gadget_id = 70900208
L16_1 = {}
L16_1.x = 452.115
L16_1.y = -11.027
L16_1.z = -122.001
L15_1.pos = L16_1
L16_1 = {}
L16_1.x = 0.0
L16_1.y = 0.0
L16_1.z = 0.0
L15_1.rot = L16_1
L15_1.level = 1
L16_1 = {}
L16_1.config_id = 184
L16_1.gadget_id = 70900208
L17_1 = {}
L17_1.x = 454.521
L17_1.y = -11.105
L17_1.z = -121.951
L16_1.pos = L17_1
L17_1 = {}
L17_1.x = 0.0
L17_1.y = 0.0
L17_1.z = 0.0
L16_1.rot = L17_1
L16_1.level = 1
L17_1 = {}
L17_1.config_id = 185
L17_1.gadget_id = 70900208
L18_1 = {}
L18_1.x = 446.635
L18_1.y = -11.343
L18_1.z = -121.986
L17_1.pos = L18_1
L18_1 = {}
L18_1.x = 0.0
L18_1.y = 0.0
L18_1.z = 0.0
L17_1.rot = L18_1
L17_1.level = 1
L18_1 = {}
L18_1.config_id = 257
L18_1.gadget_id = 70900208
L19_1 = {}
L19_1.x = 456.906
L19_1.y = -11.0
L19_1.z = -139.961
L18_1.pos = L19_1
L19_1 = {}
L19_1.x = 0.0
L19_1.y = 0.0
L19_1.z = 0.0
L18_1.rot = L19_1
L18_1.level = 1
L19_1 = {}
L19_1.config_id = 258
L19_1.gadget_id = 70900208
L20_1 = {}
L20_1.x = 459.478
L20_1.y = -11.0
L20_1.z = -139.962
L19_1.pos = L20_1
L20_1 = {}
L20_1.x = 0.0
L20_1.y = 0.0
L20_1.z = 0.0
L19_1.rot = L20_1
L19_1.level = 1
L20_1 = {}
L20_1.config_id = 259
L20_1.gadget_id = 70900208
L21_1 = {}
L21_1.x = 461.884
L21_1.y = -11.0
L21_1.z = -139.911
L20_1.pos = L21_1
L21_1 = {}
L21_1.x = 0.0
L21_1.y = 0.0
L21_1.z = 0.0
L20_1.rot = L21_1
L20_1.level = 1
L21_1 = {}
L21_1.config_id = 260
L21_1.gadget_id = 70900208
L22_1 = {}
L22_1.x = 463.258
L22_1.y = -11.0
L22_1.z = -138.298
L21_1.pos = L22_1
L22_1 = {}
L22_1.x = 0.0
L22_1.y = 0.0
L22_1.z = 0.0
L21_1.rot = L22_1
L21_1.level = 1
L22_1 = {}
L22_1.config_id = 261
L22_1.gadget_id = 70900208
L23_1 = {}
L23_1.x = 449.054
L23_1.y = -11.0
L23_1.z = -139.954
L22_1.pos = L23_1
L23_1 = {}
L23_1.x = 0.0
L23_1.y = 0.0
L23_1.z = 0.0
L22_1.rot = L23_1
L22_1.level = 1
L23_1 = {}
L23_1.config_id = 262
L23_1.gadget_id = 70900208
L24_1 = {}
L24_1.x = 451.627
L24_1.y = -11.0
L24_1.z = -139.955
L23_1.pos = L24_1
L24_1 = {}
L24_1.x = 0.0
L24_1.y = 0.0
L24_1.z = 0.0
L23_1.rot = L24_1
L23_1.level = 1
L24_1 = {}
L24_1.config_id = 263
L24_1.gadget_id = 70900208
L25_1 = {}
L25_1.x = 454.033
L25_1.y = -11.0
L25_1.z = -139.905
L24_1.pos = L25_1
L25_1 = {}
L25_1.x = 0.0
L25_1.y = 0.0
L25_1.z = 0.0
L24_1.rot = L25_1
L24_1.level = 1
L25_1 = {}
L25_1.config_id = 264
L25_1.gadget_id = 70900208
L26_1 = {}
L26_1.x = 446.147
L26_1.y = -11.0
L26_1.z = -139.94
L25_1.pos = L26_1
L26_1 = {}
L26_1.x = 0.0
L26_1.y = 0.0
L26_1.z = 0.0
L25_1.rot = L26_1
L25_1.level = 1
L26_1 = {}
L26_1.config_id = 265
L26_1.gadget_id = 70220005
L27_1 = {}
L27_1.x = 449.189
L27_1.y = -11.0
L27_1.z = -139.029
L26_1.pos = L27_1
L27_1 = {}
L27_1.x = 0.0
L27_1.y = 0.0
L27_1.z = 0.0
L26_1.rot = L27_1
L26_1.level = 1
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
L2_1[4] = L6_1
L2_1[5] = L7_1
L2_1[6] = L8_1
L2_1[7] = L9_1
L2_1[8] = L10_1
L2_1[9] = L11_1
L2_1[10] = L12_1
L2_1[11] = L13_1
L2_1[12] = L14_1
L2_1[13] = L15_1
L2_1[14] = L16_1
L2_1[15] = L17_1
L2_1[16] = L18_1
L2_1[17] = L19_1
L2_1[18] = L20_1
L2_1[19] = L21_1
L2_1[20] = L22_1
L2_1[21] = L23_1
L2_1[22] = L24_1
L2_1[23] = L25_1
L2_1[24] = L26_1
gadgets = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 52
L4_1 = RegionShape
L4_1 = L4_1.SPHERE
L3_1.shape = L4_1
L3_1.radius = 5
L4_1 = {}
L4_1.x = 467.411
L4_1.y = -11.0
L4_1.z = -131.081
L3_1.pos = L4_1
L2_1[1] = L3_1
regions = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1000022
L3_1.name = "CLIENT_EXECUTE_22"
L4_1 = EventType
L4_1 = L4_1.EVENT_CLIENT_EXECUTE
L3_1.event = L4_1
L3_1.source = "ElectricSwitch_Hit"
L3_1.condition = "condition_EVENT_CLIENT_EXECUTE_22"
L3_1.action = "action_EVENT_CLIENT_EXECUTE_22"
L3_1.trigger_count = 0
L4_1 = {}
L4_1.config_id = 1000047
L4_1.name = "CLIENT_EXECUTE_47"
L5_1 = EventType
L5_1 = L5_1.EVENT_CLIENT_EXECUTE
L4_1.event = L5_1
L4_1.source = "ElectricSwitch_Hit"
L4_1.condition = "condition_EVENT_CLIENT_EXECUTE_47"
L4_1.action = "action_EVENT_CLIENT_EXECUTE_47"
L4_1.trigger_count = 0
L5_1 = {}
L5_1.config_id = 1000052
L5_1.name = "ENTER_REGION_52"
L6_1 = EventType
L6_1 = L6_1.EVENT_ENTER_REGION
L5_1.event = L6_1
L5_1.source = ""
L5_1.condition = "condition_EVENT_ENTER_REGION_52"
L5_1.action = "action_EVENT_ENTER_REGION_52"
L5_1.forbid_guest = false
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
triggers = L2_1
L2_1 = {}
variables = L2_1
L2_1 = {}
L2_1.suite = 1
L2_1.end_suite = 0
L2_1.rand_suite = true
init_config = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L3_1.monsters = L4_1
L4_1 = {}
L5_1 = 35
L6_1 = 40
L7_1 = 41
L8_1 = 81
L9_1 = 175
L10_1 = 176
L11_1 = 177
L12_1 = 178
L13_1 = 179
L14_1 = 180
L15_1 = 181
L16_1 = 182
L17_1 = 183
L18_1 = 184
L19_1 = 185
L20_1 = 257
L21_1 = 258
L22_1 = 259
L23_1 = 260
L24_1 = 261
L25_1 = 262
L26_1 = 263
L27_1 = 264
L28_1 = 265
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L4_1[4] = L8_1
L4_1[5] = L9_1
L4_1[6] = L10_1
L4_1[7] = L11_1
L4_1[8] = L12_1
L4_1[9] = L13_1
L4_1[10] = L14_1
L4_1[11] = L15_1
L4_1[12] = L16_1
L4_1[13] = L17_1
L4_1[14] = L18_1
L4_1[15] = L19_1
L4_1[16] = L20_1
L4_1[17] = L21_1
L4_1[18] = L22_1
L4_1[19] = L23_1
L4_1[20] = L24_1
L4_1[21] = L25_1
L4_1[22] = L26_1
L4_1[23] = L27_1
L4_1[24] = L28_1
L3_1.gadgets = L4_1
L4_1 = {}
L5_1 = 52
L4_1[1] = L5_1
L3_1.regions = L4_1
L4_1 = {}
L5_1 = "CLIENT_EXECUTE_22"
L6_1 = "CLIENT_EXECUTE_47"
L7_1 = "ENTER_REGION_52"
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L3_1.triggers = L4_1
L3_1.rand_weight = 100
L2_1[1] = L3_1
suites = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2
  L2_2 = L1_1.gadget_id_1
  L3_2 = ScriptLib
  L3_2 = L3_2.GetGadgetConfigId
  L4_2 = A0_2
  L5_2 = {}
  L6_2 = A1_2.source_eid
  L5_2.gadget_eid = L6_2
  L3_2 = L3_2(L4_2, L5_2)
  if L2_2 == L3_2 then
    L2_2 = true
    return L2_2
  end
end
condition_EVENT_CLIENT_EXECUTE_22 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = A1_2.param1
  L3_2 = L1_1.gadget_id_3
  if L2_2 == L3_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.SetGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.gadget_id_2
    L5_2 = GadgetState
    L5_2 = L5_2.Default
    L2_2 = L2_2(L3_2, L4_2, L5_2)
    if 0 ~= L2_2 then
      L2_2 = -1
      return L2_2
    end
    L2_2 = 0
    return L2_2
  end
  L2_2 = A1_2.param1
  L3_2 = L1_1.gadget_id_4
  if L2_2 == L3_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.SetGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.gadget_id_2
    L5_2 = GadgetState
    L5_2 = L5_2.GearAction2
    L2_2 = L2_2(L3_2, L4_2, L5_2)
    if 0 ~= L2_2 then
      L2_2 = -1
      return L2_2
    end
    L2_2 = 0
    return L2_2
  end
end
action_EVENT_CLIENT_EXECUTE_22 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2
  L2_2 = L1_1.gadget_id_5
  L3_2 = ScriptLib
  L3_2 = L3_2.GetGadgetConfigId
  L4_2 = A0_2
  L5_2 = {}
  L6_2 = A1_2.source_eid
  L5_2.gadget_eid = L6_2
  L3_2 = L3_2(L4_2, L5_2)
  if L2_2 == L3_2 then
    L2_2 = true
    return L2_2
  end
end
condition_EVENT_CLIENT_EXECUTE_47 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = A1_2.param1
  L3_2 = L1_1.gadget_id_3
  if L2_2 == L3_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.SetGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.gadget_id_6
    L5_2 = GadgetState
    L5_2 = L5_2.Default
    L2_2 = L2_2(L3_2, L4_2, L5_2)
    if 0 ~= L2_2 then
      L2_2 = -1
      return L2_2
    end
    L2_2 = 0
    return L2_2
  end
  L2_2 = A1_2.param1
  L3_2 = L1_1.gadget_id_4
  if L2_2 == L3_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.SetGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.gadget_id_6
    L5_2 = GadgetState
    L5_2 = L5_2.GearAction2
    L2_2 = L2_2(L3_2, L4_2, L5_2)
    if 0 ~= L2_2 then
      L2_2 = -1
      return L2_2
    end
    L2_2 = 0
    return L2_2
  end
end
action_EVENT_CLIENT_EXECUTE_47 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = A1_2.param1
  if L2_2 ~= 52 then
    L2_2 = false
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.GetRegionEntityCount
  L3_2 = A0_2
  L4_2 = {}
  L5_2 = A1_2.source_eid
  L4_2.region_eid = L5_2
  L5_2 = EntityType
  L5_2 = L5_2.AVATAR
  L4_2.entity_type = L5_2
  L2_2 = L2_2(L3_2, L4_2)
  if L2_2 < 1 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_ENTER_REGION_52 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 175
  L5_2 = GadgetState
  L5_2 = L5_2.Default
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 40
  L5_2 = GadgetState
  L5_2 = L5_2.Default
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_ENTER_REGION_52 = L2_1
